Add loading state to Create Project and Create Channel modals - #31
Add loading state to Create Project and Create Channel modals#31AakashKB wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughLoading state handling has been added to channel and project creation flows. Both components now track pending operations, disable submission buttons during creation, and display dynamic feedback text to prevent duplicate submissions and provide visual progress indication. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Summary
createBoard.isPendingfrom React Query to disable button and show "Creating..." during submissionisCreatingChannelstate to disable button and show "Creating..." during the asyncaddChannelAPI callBoth modals previously awaited async API calls with no loading indicator, allowing double-submission and leaving the UI unresponsive during network round-trips.
Test plan
Closes #30
Summary by CodeRabbit